<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--头部-->
<div class="main-layout-header " th:fragment="layoutHeader">
    <div class="menu-btn" id="hideBtn">
        <a href="javascript:;">
            <span class="iconfont">&#xe60e;</span>
        </a>
    </div>
    <ul class="layui-nav" lay-filter="rightNav">
        <li class="layui-nav-item"><a href="javascript:;" data-id='4'
                                      data-text="邮件系统" style="color: #c2c2c2"><i class="iconfont">&#xe603;</i></a>
        </li>
        <li class="layui-nav-item">
            <a href="javascript:;" data-url="admin-info.html" data-id='5' data-text="个人信息"
               style="color: #c2c2c2" id="user_nickname_id">
                <shiro:user>
                    <shiro:principal property="nickName"/>
                </shiro:user>
            </a>
        </li>
        <li class="layui-nav-item"><a th:href="${#servletContext.contextPath}+'/loginout'"
                                      style="color: #c2c2c2">退出</a>
        </li>
    </ul>
</div>
</body>
</html>